package com.awenhui.demo.repository;

import java.util.List;

import com.awenhui.demo.model.entity.RoleEntity;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 角色操作类
 */
@Repository
public interface RoleRespository extends JpaRepository<RoleEntity, String> {



    /**
     * 根据角色名称查询
     * 
     * @param name
     * @return
     */
    List<RoleEntity> findByName(String name);

}